#include "bench.hpp"

int main()
{
    ckflogs::LoggerBuilder::Ptr builder = std::make_shared<ckflogs::GlobalLoggerBuilder>();
    builder->buildSinker<ckflogs::FileLogSinker>("logfile/test.log");

    builder->bulidType(ckflogs::Logger::LoggerType::LOGGER_SYNC);
    builder->bulidName("Synclogger");
    builder->build();
    bitlog::bench("Synclogger", 1, 100, 1000000);
    bitlog::bench("Synclogger", 3, 100, 1000000);

    builder->bulidType(ckflogs::Logger::LoggerType::LOGGER_ASYNC);
    builder->bulidName("Asynclogger");
    builder->buildAsycnType("UNSAFE");
    builder->build();
    bitlog::bench("Asynclogger", 1, 100, 1000000);
    bitlog::bench("Asynclogger", 3, 100, 1000000);

    return 0;
}